﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WebEntities.Models.WebInfo
{
    public class NewsType
    {
        public int TypeID { get; set; }
        public string TypeName { get; set; }
        public string Description { get; set; }
        public int? SortNum { get; set; }
        public DateTime CreateTime { get; set; }
        public string Creator { get; set; }

        public static NewsType AsNewsType(WI_NewsType wintype)
        {
            NewsType ntype = new NewsType
            {
                TypeID = wintype.TypeID,
                TypeName = wintype.TypeName,
                Description = wintype.Description,
                SortNum = wintype.SortNum,
                CreateTime = wintype.CreateTime,
                Creator = wintype.Creator
            };
            return ntype;
        }
    }
}
